package org.vergil.core.designpattern.handler;

/**
 * Created by vergil on 17-3-21.
 */
public abstract class AbstractHandler {

    //维持对下家的引用
    protected AbstractHandler successor; //定义后继对象;

    public void setHandler(AbstractHandler handler) {
        this.successor = handler;
    }

    public abstract void handleRequest(String request);
}
